package com.dmai.capacity.platform.user.controller;

import com.dmai.capacity.platform.common.dto.ResponseEntity;
import com.dmai.capacity.platform.oauth.common.service.IGatewayLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("gatewaylogs")
public class GatewayLogController {

    @Autowired
    private IGatewayLogService gatewayLogService;


    /**
     * 查询单条记录
     */
    @RequestMapping("/{id}")
    public ResponseEntity get(@PathVariable("id") String id) {
        return ResponseEntity.succeed(gatewayLogService.get(id));
    }

}
